package com.zlll.winner.enums.bbs;

import com.zlll.winner.enums.biz.Constant;

public class SubjectEnum {

    /**
     * 论坛栏目枚举
     */
    public enum PositionEnum implements Constant {
        HOT("热门",1),
        EXPOSE("曝光",2),
        HELP("帮忙",3),
        INSTA_SHOT("随手拍",4),
        CITY("同城",5),
        ROAD_CONDITION("路况",6),
        EXPERIENCE("经验",7),
        STORY("故事汇",8);

        private String desc;
        private int value;

        PositionEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }

        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }

    /**
     * 论坛栏目枚举
     */
    public enum StatusEnum implements Constant {
        //  1:草稿 2:等待上架 3:已上架 4:已结束 5:已下架
        DRAFT("草稿",1),
        WAIT("等待上架",2),
        PUT_AWAY("已上架",3),
        ENDED("已结束",4),
        PUT_BACK("已下架",5);

        private String desc;
        private int value;

        StatusEnum(String desc, int value){
            this.desc = desc;
            this.value = value;
        }

        @Override
        public String desc() {
            return desc;
        }
        @Override
        public int val() {
            return value;
        }

    }

}
